home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / intuition / addclass.c < prev    next >
C/C++ Source or Header  |  1996-09-12  |  2KB  |  70 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: addclass.c,v 1.1 1996/08/28 17:55:34 digulla Exp $
  4.     $Log: addclass.c,v $
  5.     Revision 1.1  1996/08/28 17:55:34  digulla
  6.     Proportional gadgets
  7.     BOOPSI
  8.  
  9.  
  10.     Desc:
  11.     Lang: english
  12. */
  13. #include <clib/exec_protos.h>
  14. #include "intuition_intern.h"
  15.  
  16. /*****************************************************************************
  17.  
  18.     NAME */
  19.     #include <intuition/classes.h>
  20.     #include <clib/intuition_protos.h>
  21.  
  22.     __AROS_LH1(void, AddClass,
  23.  
  24. /*  SYNOPSIS */
  25.     __AROS_LHA(struct IClass *, classPtr, A0),
  26.  
  27. /*  LOCATION */
  28.     struct IntuitionBase *, IntuitionBase, 114, Intuition)
  29.  
  30. /*  FUNCTION
  31.     Makes a class publically usable. This function must not be called
  32.     before MakeClass().
  33.  
  34.     INPUTS
  35.     class - The result of MakeClass()
  36.  
  37.     RESULT
  38.     None.
  39.  
  40.     NOTES
  41.  
  42.     EXAMPLE
  43.     There is no protection against creating multiple classes with
  44.     the same name yet. The operation of the system is undefined
  45.     in this case.
  46.  
  47.     BUGS
  48.  
  49.     SEE ALSO
  50.     MakeClass(), FreeClass(), RemoveClass(), "Basic Object-Oriented
  51.     Programming System for Intuition" and "boopsi Class Reference"
  52.  
  53.     INTERNALS
  54.  
  55.     HISTORY
  56.     29-10-95    digulla automatically created from
  57.                 intuition_lib.fd and clib/intuition_protos.h
  58.  
  59. *****************************************************************************/
  60. {
  61.     __AROS_FUNC_INIT
  62.     __AROS_BASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  63.  
  64.     AddTail (PublicClassList, (struct Node *)classPtr);
  65.  
  66.     classPtr->cl_Flags |= CLF_INLIST;
  67.  
  68.     __AROS_FUNC_EXIT
  69. } /* AddClass */
  70.